package org.lds.message.center.admin.business.template.controller;


import lombok.RequiredArgsConstructor;
import org.lds.message.center.admin.business.template.service.TemplateService;
import org.lds.message.center.common.model.ResultDTO;
import org.lds.message.center.common.model.request.GetTemplateAdminRequest;
import org.lds.message.center.common.model.response.GetTemplateAdminResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 前端控制器
 *
 * @author lidongsheng
 * @since 2024-12-22
 */
@RestController
@RequestMapping("/api/template")
@RequiredArgsConstructor
public class TemplateController {
    private final TemplateService templateService;

    @PostMapping("/get")
    public ResultDTO<GetTemplateAdminResponse> getTemplate(@RequestBody GetTemplateAdminRequest request) {
        return templateService.getTemplate(request);
    }

}